package com.lemontree.spring3.day04;

import com.lemontree.spring3.day01.Cat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @Author: YLBG-YCY-1325
 * @Description:
 * @Date: 2017/8/22
 */
@Component
public class Bean2 {

    @Autowired
    private Bean3 bean3;

    @Autowired
    private Cat cat;

    public void say2(){
        System.out.println("this is bean2");
        bean3.say();
        cat.eat();
    }
}
